module.exports = app => {
    const { router, controller, config, middleware } = app;
    const userislogin = middleware.isadmin();
    router.post('/article/add',controller.article.add);
    router.post('/article/statedone',userislogin,controller.article.statedone);
    router.post('/article/gets',controller.article.gets);
    router.post('/article/getbytitle',controller.article.getbytitle);
    router.post('/article/getone',controller.article.getone);
    router.post('/article/updateone',userislogin,controller.article.updateone);
    router.post('/article/getspicle',controller.article.getspicle);

    
    //微信小程序端
    router.post('/article/chatgets',controller.article.chatgets);
    
};
  